﻿{include file="public/header" /}
<form method="post" class="form-x" action="money_off_edit?seller_id={:input('get.seller_id')}&name={:input('get.name')}{if $data.id}&id={$data.id}{/if}">
    <input type="hidden" name="seller_id" value="{:input('get.seller_id')}">
    <div class="panel admin-panel">
        <div class="panel-head">
            <strong>{:lang('currency')['edit']}</strong>
            <a style="float: right;margin-right: 15px" href="__URL__/money_off?page={:input('get.page')}&id={:input('get.seller_id')}&name={:input('get.name')}"><< 返回</a>
        </div>
        <br/>
        <div class="form-group">
            <div class="label">
                <label>满</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="full" name="full" value="{$data.full}" size="18" placeholder="满"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>减</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="minus" name="minus" value="{$data.minus}" size="18" placeholder="满"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>平台承担</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="system_minus" name="system_minus" value="{$data.system_minus}" size="18" placeholder="平台承担"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>商家承担</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="seller_minus" name="seller_minus" value="{$data.seller_minus}" size="18" placeholder="商家承担"/>
            </div>
        </div>
        <div class="form-button">
            <button class="button bg-main" type="submit">{:lang('form')['submit']}</button>
        </div>
        <br/>
    </div>
</form>
<script>
    $("[name='status']").click(function () {
        var status = $("[name='status']:checked").val();
        if (status == '4') {
            $("#refuse").removeClass('hidden');
        } else {
            $("#refuse").addClass('hidden');
        }
    });
    var um = UM.getEditor('myEditor');
</script>
{include file="public/footer" /}